package com.question.business.dict.model.ao;

import com.question.common.annotation.DictValid;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 字典类型启用、停用参数
 *
 * @author star
 * @since 2023-09-07
 */
@Data
public class DictTypeEnabledAO {

    /**
     * ID
     */
    @NotBlank(message = "ID不能为空")
    @Size(max = 20, message = "ID最长不能超过20位")
    private String id;

    /**
     * 启用状态(1:启用2:停用)
     */
    @DictValid(type = "enabled", message = "启用状态(1:启用2:停用)不存在")
    @NotNull(message = "启用状态(1:启用2:停用)不能为空")
    private Integer enabled;

}